#include "bsp_font.h"
#include "main.h"

/** 引脚定义 */
#define IPS114_SCL(x) \
  HAL_GPIO_WritePin(SPI2_SLK_GPIO_Port, SPI2_SLK_Pin, (GPIO_PinState)x)
#define IPS114_SDA(x) \
  HAL_GPIO_WritePin(SPI2_MOSI_GPIO_Port, SPI2_MOSI_Pin, (GPIO_PinState)x)
#define IPS114_REST(x) \
  HAL_GPIO_WritePin(SCREEN_RES_GPIO_Port, SCREEN_RES_Pin, (GPIO_PinState)x)
#define IPS114_DC(x) \
  HAL_GPIO_WritePin(SCREEN_DC_GPIO_Port, SCREEN_DC_Pin, (GPIO_PinState)x)
#define IPS114_CS(x) \
  HAL_GPIO_WritePin(SCREEN_CS_GPIO_Port, SCREEN_CS_Pin, (GPIO_PinState)x)


void Bsp_IpsWrCmd(uint8_t dat);
void Bsp_IpsWrData(uint8_t dat);
void Bsp_IpsWrData16(uint16_t dat);
